
<html lang=""><head>
    <title>label · MINA</title>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
    <meta name="description" content="">
    <meta name="generator" content="GitBook 3.2.0">




    <link rel="stylesheet" href="../../gitbook/style.css">




    <link rel="stylesheet" href="../../gitbook/gitbook-plugin-highlight/website.css">



    <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search/search.css">























    <meta name="HandheldFriendly" content="true">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">


    <link rel="next" href="picker.html">


    <link rel="prev" href="input.html">


</head>
<body>

<div class="book with-summary">
    <div>

        <div class="sub_nav_box">
            <div class="sub_nav_inner">




                <ul class="top_sub_nav">




                    <li class="sub_nav_item " data-level="1.1" data-path="../">

                        <a href="../">


                            简易教程

                        </a>

                    </li>

                    <li class="sub_nav_item " data-level="1.2" data-path="../framework/MINA.html">

                        <a href="../framework/MINA.html">


                            框架

                        </a>

                    </li>

                    <li class="sub_nav_item selected" data-level="1.3" data-path="./">

                        <a href="./">


                            组件

                        </a>

                    </li>

                    <li class="sub_nav_item " data-level="1.4" data-path="../api/">

                        <a href="../api/">


                            API

                        </a>

                    </li>

                    <li class="sub_nav_item " data-level="1.5" data-path="../devtools/devtools.html">

                        <a href="../devtools/devtools.html">


                            工具

                        </a>

                    </li>

                    <li class="sub_nav_item " data-level="1.6" data-path="../qa/qa.html">

                        <a href="../qa/qa.html">


                            Q&amp;A

                        </a>

                    </li>




                </ul>




                <!-- <h1>label</h1> -->
                <div id="book-search-input" role="search">
                    <form>
                        <label for="search-input" class="search-icon" id="js-search-icon"></label>
                        <input type="text" id="search-input" name="search-input" placeholder="搜索">
                        <button type="reset" class="clear-input-btn"></button>
                    </form>
                </div>
            </div>
        </div>

        <div class="book-summary">


            <nav role="navigation">





                <ul class="summary">


                    <li class="chapter  open" data-level="1.3.1" data-path="view.html">

                        <a href="view.html">


                            视图容器

                        </a>



                        <ul class="articles">


                            <li class="chapter  " data-level="1.3.1.1" data-path="view.html">

                                <a href="view.html">


                                    view

                                </a>



                            </li>

                            <li class="chapter  " data-level="1.3.1.2" data-path="scroll-view.html">

                                <a href="scroll-view.html">


                                    scroll-view

                                </a>



                            </li>

                            <li class="chapter  " data-level="1.3.1.3" data-path="swiper.html">

                                <a href="swiper.html">


                                    swiper

                                </a>



                            </li>


                        </ul>

                    </li>

                    <li class="chapter  open" data-level="1.3.2" data-path="icon.html">

                        <a href="icon.html">


                            基础内容

                        </a>



                        <ul class="articles">


                            <li class="chapter  " data-level="1.3.2.1" data-path="icon.html">

                                <a href="icon.html">


                                    icon

                                </a>



                            </li>

                            <li class="chapter  " data-level="1.3.2.2" data-path="text.html">

                                <a href="text.html">


                                    text

                                </a>



                            </li>

                            <li class="chapter  " data-level="1.3.2.3" data-path="progress.html">

                                <a href="progress.html">


                                    progress

                                </a>



                            </li>


                        </ul>

                    </li>

                    <li class="chapter  open" data-level="1.3.3" data-path="button.html">

                        <a href="button.html">


                            表单组件

                        </a>



                        <ul class="articles">


                            <li class="chapter  " data-level="1.3.3.1" data-path="button.html">

                                <a href="button.html">


                                    button

                                </a>



                            </li>

                            <li class="chapter  " data-level="1.3.3.2" data-path="checkbox.html">

                                <a href="checkbox.html">


                                    checkbox

                                </a>



                            </li>

                            <li class="chapter  " data-level="1.3.3.3" data-path="form.html">

                                <a href="form.html">


                                    form

                                </a>



                            </li>

                            <li class="chapter  " data-level="1.3.3.4" data-path="input.html">

                                <a href="input.html">


                                    input

                                </a>



                            </li>

                            <li class="chapter active " data-level="1.3.3.5" data-path="label.html">

                                <a href="label.html">


                                    label

                                </a>



                            </li>

                            <li class="chapter  " data-level="1.3.3.6" data-path="picker.html">

                                <a href="picker.html">


                                    picker

                                </a>



                            </li>

                            <li class="chapter  " data-level="1.3.3.7" data-path="radio.html">

                                <a href="radio.html">


                                    radio

                                </a>



                            </li>

                            <li class="chapter  " data-level="1.3.3.8" data-path="slider.html">

                                <a href="slider.html">


                                    slider

                                </a>



                            </li>

                            <li class="chapter  " data-level="1.3.3.9" data-path="switch.html">

                                <a href="switch.html">


                                    switch

                                </a>



                            </li>


                        </ul>

                    </li>

                    <li class="chapter  open" data-level="1.3.4" data-path="action-sheet.html">

                        <a href="action-sheet.html">


                            操作反馈

                        </a>



                        <ul class="articles">


                            <li class="chapter  " data-level="1.3.4.1" data-path="action-sheet.html">

                                <a href="action-sheet.html">


                                    action-sheet

                                </a>



                            </li>

                            <li class="chapter  " data-level="1.3.4.2" data-path="modal.html">

                                <a href="modal.html">


                                    modal

                                </a>



                            </li>

                            <li class="chapter  " data-level="1.3.4.3" data-path="toast.html">

                                <a href="toast.html">


                                    toast

                                </a>



                            </li>

                            <li class="chapter  " data-level="1.3.4.4" data-path="loading.html">

                                <a href="loading.html">


                                    loading

                                </a>



                            </li>


                        </ul>

                    </li>

                    <li class="chapter  open" data-level="1.3.5" data-path="navigator.html">

                        <a href="navigator.html">


                            导航

                        </a>



                        <ul class="articles">


                            <li class="chapter  " data-level="1.3.5.1" data-path="navigator.html">

                                <a href="navigator.html">


                                    navigator

                                </a>



                            </li>


                        </ul>

                    </li>

                    <li class="chapter  open" data-level="1.3.6" data-path="audio.html">

                        <a href="audio.html">


                            媒体组件

                        </a>



                        <ul class="articles">


                            <li class="chapter  " data-level="1.3.6.1" data-path="audio.html">

                                <a href="audio.html">


                                    audio

                                </a>



                            </li>

                            <li class="chapter  " data-level="1.3.6.2" data-path="image.html">

                                <a href="image.html">


                                    image

                                </a>



                            </li>

                            <li class="chapter  " data-level="1.3.6.3" data-path="video.html">

                                <a href="video.html">


                                    video

                                </a>



                            </li>


                        </ul>

                    </li>

                    <li class="chapter  open" data-level="1.3.7" data-path="map.html">

                        <a href="map.html">


                            地图

                        </a>



                        <ul class="articles">


                            <li class="chapter  " data-level="1.3.7.1" data-path="map.html">

                                <a href="map.html#map">


                                    map

                                </a>



                            </li>


                        </ul>

                    </li>

                    <li class="chapter  open" data-level="1.3.8" data-path="canvas.html">

                        <a href="canvas.html">


                            画布

                        </a>



                        <ul class="articles">


                            <li class="chapter  " data-level="1.3.8.1" data-path="canvas.html">

                                <a href="canvas.html#canvas">


                                    canvas

                                </a>



                            </li>


                        </ul>

                    </li>


                </ul>


            </nav>


        </div>

        <div class="book-body">

            <div class="body-inner">

                <!--

                <div class="book-header" role="navigation">

                </div>


                 -->

                <div class="page-wrapper" tabindex="-1" role="main">
                    <div class="page-inner">

                        <div id="book-search-results">
                            <div class="search-noresults">

                                <section class="normal markdown-section">

                                    <h4 id="label">label</h4><p>用来改进<a href="../wxml-component-form.md">表单组件</a>的可用性，使用<code>for</code>属性找到对应的<code>id</code>，或者将控件放在该标签下，当点击时，就会触发对应的控件。</p><p><code>for</code>优先级高于内部控件，内部有多个控件的时候默认触发第一个控件。</p><p>目前可以绑定的控件有：<code>button</code>, <code>checkbox</code>, <code>radio</code>, <code>switch</code>。</p><table>
                                    <thead>
                                    <tr><th>属性名</th>
                                        <th>类型</th>
                                        <th>说明</th>
                                    </tr></thead><tbody>
                                <tr><td>for</td>
                                    <td>String</td>
                                    <td>绑定控件的id</td>
                                </tr></tbody></table>

                                    <p><strong>示例代码：</strong></p><pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-name">view</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"section section_gap"</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">view</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"section__title"</span>&gt;</span>表单组件在label内<span class="hljs-tag">&lt;/<span class="hljs-name">view</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">checkbox-group</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"group"</span> <span class="hljs-attr">bindchange</span>=<span class="hljs-string">"checkboxChange"</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">view</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"label-1"</span> <span class="hljs-attr">wx:for-items</span>=<span class="hljs-string">"{{checkboxItems}}"</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">label</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">checkbox</span> <span class="hljs-attr">hidden</span> <span class="hljs-attr">value</span>=<span class="hljs-string">"{{item.name}}"</span> <span class="hljs-attr">checked</span>=<span class="hljs-string">"{{item.checked}}"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">checkbox</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">view</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"label-1__icon"</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-name">view</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"label-1__icon-checked"</span> <span class="hljs-attr">style</span>=<span class="hljs-string">"opacity:{{item.checked ? 1: 0}}"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">view</span>&gt;</span>
            <span class="hljs-tag">&lt;/<span class="hljs-name">view</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">text</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"label-1__text"</span>&gt;</span>{{item.value}}<span class="hljs-tag">&lt;/<span class="hljs-name">text</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-name">label</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">view</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">checkbox-group</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">view</span>&gt;</span>

<span class="hljs-tag">&lt;<span class="hljs-name">view</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"section section_gap"</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">view</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"section__title"</span>&gt;</span>label用for标识表单组件<span class="hljs-tag">&lt;/<span class="hljs-name">view</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">radio-group</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"group"</span> <span class="hljs-attr">bindchange</span>=<span class="hljs-string">"radioChange"</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">view</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"label-2"</span> <span class="hljs-attr">wx:for-items</span>=<span class="hljs-string">"{{radioItems}}"</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">radio</span> <span class="hljs-attr">id</span>=<span class="hljs-string">"{{item.name}}"</span> <span class="hljs-attr">hidden</span> <span class="hljs-attr">value</span>=<span class="hljs-string">"{{item.name}}"</span> <span class="hljs-attr">checked</span>=<span class="hljs-string">"{{item.checked}}"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">radio</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">view</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"label-2__icon"</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">view</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"label-2__icon-checked"</span> <span class="hljs-attr">style</span>=<span class="hljs-string">"opacity:{{item.checked ? 1: 0}}"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">view</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-name">view</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">label</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"label-2__text"</span> <span class="hljs-attr">for</span>=<span class="hljs-string">"{{item.name}}"</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">text</span>&gt;</span>{{item.name}}<span class="hljs-tag">&lt;/<span class="hljs-name">text</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">label</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">view</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">radio-group</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">view</span>&gt;</span>


<span class="hljs-tag">&lt;<span class="hljs-name">view</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"section section_gap"</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">view</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"section__title"</span>&gt;</span>绑定button<span class="hljs-tag">&lt;/<span class="hljs-name">view</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">label</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"label-3"</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">text</span>&gt;</span>点击这段文字，button会被选中<span class="hljs-tag">&lt;/<span class="hljs-name">text</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">label</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">view</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"btn-area"</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">button</span> <span class="hljs-attr">type</span>=<span class="hljs-string">"default"</span> <span class="hljs-attr">name</span>=<span class="hljs-string">"1"</span> <span class="hljs-attr">bindtap</span>=<span class="hljs-string">"tapEvent"</span>&gt;</span>按钮<span class="hljs-tag">&lt;/<span class="hljs-name">button</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">view</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">view</span>&gt;</span>

<span class="hljs-tag">&lt;<span class="hljs-name">view</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"section section_gap"</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">view</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"section__title"</span>&gt;</span>label内有多个时选中第一个<span class="hljs-tag">&lt;/<span class="hljs-name">view</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">label</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"label-4"</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">checkbox</span>&gt;</span> 选中我 <span class="hljs-tag">&lt;/<span class="hljs-name">checkbox</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">checkbox</span>&gt;</span> 选不中 <span class="hljs-tag">&lt;/<span class="hljs-name">checkbox</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">checkbox</span>&gt;</span> 选不中 <span class="hljs-tag">&lt;/<span class="hljs-name">checkbox</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">checkbox</span>&gt;</span> 选不中 <span class="hljs-tag">&lt;/<span class="hljs-name">checkbox</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">view</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"label-4_text"</span>&gt;</span>点我会选中第一个<span class="hljs-tag">&lt;/<span class="hljs-name">view</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">label</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">view</span>&gt;</span></code></pre>
<pre><code class="lang-js">Page({
  data: {
    checkboxItems: [
      {name: <span class="hljs-string">'USA'</span>, value: <span class="hljs-string">'美国'</span>},
      {name: <span class="hljs-string">'CHN'</span>, value: <span class="hljs-string">'中国'</span>, checked: <span class="hljs-string">'true'</span>},
      {name: <span class="hljs-string">'BRA'</span>, value: <span class="hljs-string">'巴西'</span>},
      {name: <span class="hljs-string">'JPN'</span>, value: <span class="hljs-string">'日本'</span>, checked: <span class="hljs-string">'true'</span>},
      {name: <span class="hljs-string">'ENG'</span>, value: <span class="hljs-string">'英国'</span>},
      {name: <span class="hljs-string">'TUR'</span>, value: <span class="hljs-string">'法国'</span>},
    ],
    radioItems: [
      {name: <span class="hljs-string">'USA'</span>, value: <span class="hljs-string">'美国'</span>},
      {name: <span class="hljs-string">'CHN'</span>, value: <span class="hljs-string">'中国'</span>, checked: <span class="hljs-string">'true'</span>},
      {name: <span class="hljs-string">'BRA'</span>, value: <span class="hljs-string">'巴西'</span>},
      {name: <span class="hljs-string">'JPN'</span>, value: <span class="hljs-string">'日本'</span>},
      {name: <span class="hljs-string">'ENG'</span>, value: <span class="hljs-string">'英国'</span>},
      {name: <span class="hljs-string">'TUR'</span>, value: <span class="hljs-string">'法国'</span>},
    ],
    hidden: <span class="hljs-literal">false</span>
  },
  checkboxChange: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">e</span>) </span>{
    <span class="hljs-keyword">var</span> checked = e.detail.value
    <span class="hljs-keyword">var</span> changed = {}
    <span class="hljs-keyword">for</span> (<span class="hljs-keyword">var</span> i = <span class="hljs-number">0</span>; i &lt; <span class="hljs-keyword">this</span>.data.checkboxItems.length; i ++) {
      <span class="hljs-keyword">if</span> (checked.indexOf(<span class="hljs-keyword">this</span>.data.checkboxItems[i].name) !== <span class="hljs-number">-1</span>) {
        changed[<span class="hljs-string">'checkboxItems['</span>+i+<span class="hljs-string">'].checked'</span>] = <span class="hljs-literal">true</span>
      } <span class="hljs-keyword">else</span> {
        changed[<span class="hljs-string">'checkboxItems['</span>+i+<span class="hljs-string">'].checked'</span>] = <span class="hljs-literal">false</span>
      }
    }
    <span class="hljs-keyword">this</span>.setData(changed)
  },
  radioChange: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">e</span>) </span>{
    <span class="hljs-keyword">var</span> checked = e.detail.value
    <span class="hljs-keyword">var</span> changed = {}
    <span class="hljs-keyword">for</span> (<span class="hljs-keyword">var</span> i = <span class="hljs-number">0</span>; i &lt; <span class="hljs-keyword">this</span>.data.radioItems.length; i ++) {
      <span class="hljs-keyword">if</span> (checked.indexOf(<span class="hljs-keyword">this</span>.data.radioItems[i].name) !== <span class="hljs-number">-1</span>) {
        changed[<span class="hljs-string">'radioItems['</span>+i+<span class="hljs-string">'].checked'</span>] = <span class="hljs-literal">true</span>
      } <span class="hljs-keyword">else</span> {
        changed[<span class="hljs-string">'radioItems['</span>+i+<span class="hljs-string">'].checked'</span>] = <span class="hljs-literal">false</span>
      }
    }
    <span class="hljs-keyword">this</span>.setData(changed)
  }
})
</code></pre>
<pre><code class="lang-css"><span class="hljs-selector-class">.label-1</span>, <span class="hljs-selector-class">.label-2</span>{
    <span class="hljs-attribute">margin-bottom</span>: <span class="hljs-number">15px</span>;
}
<span class="hljs-selector-class">.label-1__text</span>, <span class="hljs-selector-class">.label-2__text</span> {
    <span class="hljs-attribute">display</span>: inline-block;
    <span class="hljs-attribute">vertical-align</span>: middle;
}

<span class="hljs-selector-class">.label-1__icon</span> {
    <span class="hljs-attribute">position</span>: relative;
    <span class="hljs-attribute">margin-right</span>: <span class="hljs-number">10px</span>;
    <span class="hljs-attribute">display</span>: inline-block;
    <span class="hljs-attribute">vertical-align</span>: middle;
    <span class="hljs-attribute">width</span>: <span class="hljs-number">18px</span>;
    <span class="hljs-attribute">height</span>: <span class="hljs-number">18px</span>;
    <span class="hljs-attribute">background</span>: <span class="hljs-number">#fcfff4</span>;
}

<span class="hljs-selector-class">.label-1__icon-checked</span> {
    <span class="hljs-attribute">position</span>: absolute;
    <span class="hljs-attribute">top</span>: <span class="hljs-number">3px</span>;
    <span class="hljs-attribute">left</span>: <span class="hljs-number">3px</span>;
    <span class="hljs-attribute">width</span>: <span class="hljs-number">12px</span>;
    <span class="hljs-attribute">height</span>: <span class="hljs-number">12px</span>;
    <span class="hljs-attribute">background</span>: <span class="hljs-number">#1aad19</span>;
}


<span class="hljs-selector-class">.label-2__icon</span> {
    <span class="hljs-attribute">position</span>: relative;
    <span class="hljs-attribute">display</span>: inline-block;
    <span class="hljs-attribute">vertical-align</span>: middle;
    <span class="hljs-attribute">margin-right</span>: <span class="hljs-number">10px</span>;
    <span class="hljs-attribute">width</span>: <span class="hljs-number">18px</span>;
    <span class="hljs-attribute">height</span>: <span class="hljs-number">18px</span>;
    <span class="hljs-attribute">background</span>: <span class="hljs-number">#fcfff4</span>;
    <span class="hljs-attribute">border-radius</span>: <span class="hljs-number">50px</span>;
}

<span class="hljs-selector-class">.label-2__icon-checked</span> {
    <span class="hljs-attribute">position</span>: absolute;
    <span class="hljs-attribute">left</span>: <span class="hljs-number">3px</span>;
    <span class="hljs-attribute">top</span>: <span class="hljs-number">3px</span>;
    <span class="hljs-attribute">width</span>: <span class="hljs-number">12px</span>;
    <span class="hljs-attribute">height</span>: <span class="hljs-number">12px</span>;
    <span class="hljs-attribute">background</span>: <span class="hljs-number">#1aad19</span>;
    <span class="hljs-attribute">border-radius</span>: <span class="hljs-number">50%</span>;
}

<span class="hljs-selector-class">.label-4_text</span>{
    <span class="hljs-attribute">text-align</span>: center;
    <span class="hljs-attribute">margin-top</span>: <span class="hljs-number">15px</span>;
}</code></pre>
                                    <p><img alt="label" src="../image/pic/label.png"></p>

                                </section>

                            </div>
                            <div class="search-results">
                                <div class="has-results">

                                    <h1 class="search-results-title"><span class="search-results-count"></span> 个结果 "<span class="search-query"></span>"</h1>
                                    <ul class="search-results-list"></ul>

                                </div>
                                <div class="no-results">

                                    <h1 class="search-results-title">没有找到相关内容 "<span class="search-query"></span>"</h1>

                                </div>
                            </div>
                        </div>

                    </div>
                </div>
                <div class="foot" id="footer">
                    <ul class="links ft">
                        <li class="links_item"><a href="">关于腾讯</a></li>
                        <li class="links_item"><a href="">服务协议</a></li>
                        <li class="links_item"><a href="">运营规范</a></li>
                        <li class="links_item"><a href="">辟谣中心</a></li>
                        <li class="links_item"><a href="">客服中心</a></li>
                        <li class="links_item"><a href="">联系邮箱</a></li>
                        <li class="links_item"><a href="">侵权投诉</a></li>
                        <li class="links_item">
                            <p class="copyright">Copyright © 2012-<span id="s_copyright_year"></span> Tencent. All Rights Reserved.</p>
                        </li>
                    </ul>
                </div>

            </div>



            <a href="input.html" class="navigation navigation-prev " aria-label="Previous page: input">
                <i class="fa fa-angle-left"></i>
            </a>


            <a href="picker.html" class="navigation navigation-next " aria-label="Next page: picker">
                <i class="fa fa-angle-right"></i>
            </a>



        </div>
    </div>


    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>


    <script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>



    <script src="../../gitbook/gitbook-plugin-search/search.js"></script>



    <script src="../../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>



    <script src="../../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>


    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"label","level":"1.3.3.5","depth":3,"next":{"title":"picker","level":"1.3.3.6","depth":3,"path":"component/picker.md","ref":"component/picker.md","articles":[]},"previous":{"title":"input","level":"1.3.3.4","depth":3,"path":"component/input.md","ref":"component/input.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"ignoreSpecialCharacters":false,"maxIndexSize":1000000},"theme-default":{"showLevel":false,"styles":{"ebook":"styles/ebook.css","epub":"styles/epub.css","mobi":"styles/mobi.css","pdf":"styles/pdf.css","print":"styles/print.css","website":"styles/website.css"}}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"ebook":"styles/ebook.css","epub":"styles/epub.css","mobi":"styles/mobi.css","pdf":"styles/pdf.css","print":"styles/print.css","website":"styles/website.css"}},"file":{"path":"component/label.md","mtime":"2016-09-21T05:53:11.000Z","type":"markdown"},"gitbook":{"version":"3.2.0","time":"2016-09-22T09:40:22.799Z"},"basePath":"..","book":{"language":""}});
        });
    </script>




</div></body></html>